#ifndef NOD_H
#define NOD_H
#include <string>

class Nod{
	protected:
		Nod *fStang,*fDrept;//fii stang si drept
		static long double x=0;
	public:
		Nod();
		~Nod();
		virtual long double calcul()=0;
		virtual std::string derivare()=0;
		virtual long double calculDerivata()=0;
		virtual std::string toString()=0;
		Nod *getFStang();
		void setFStang(Nod *x);
		Nod *getFDrept();
		void setFDrept(Nod *x);
		static void setX(long double X);
		static long double getX();
};
#endif
